package com.ap.generator.distributor;

import com.ap.core.cxf.jaxb.distributor.AbstractEndMerchantInfoTypeGeneratorBuilder;
import com.ap.generator.common.FieldGenerator;

import static com.ap.datagen.core.GeneratorHelper.buildA;
import static com.ap.datagen.core.Nullable.nullable;
import static com.ap.generator.common.AddressMandatoryCountryCodeGeneratorBuilder.getAddressMandatoryCountryCodeGenerator;

public class EndMerchantInfoTypeGeneratorBuilder extends
		AbstractEndMerchantInfoTypeGeneratorBuilder {

	@Override
	public void setupDefaults() {
		this.countryCodeGenerator = FieldGenerator.COUNTRYCODEGENERATOR;
		this.merchantNameGenerator = FieldGenerator.MERCHANTNAMEGENERATOR;
		this.merchantCmnNameGenerator = FieldGenerator.MERCHANTCMNNAMEGENERATOR;
		this.merchantIdGenerator = FieldGenerator.MERCHANTIDGENERATOR;
		this.merchantAddressGenerator = nullable(buildA(getAddressMandatoryCountryCodeGenerator()));
		this.inMerchantUrlGenerator = FieldGenerator.INMERCHANTURLGENERATOR;
	}

	public static EndMerchantInfoTypeGeneratorBuilder getEndMerchantInfoTypeGenerator() {
		return new EndMerchantInfoTypeGeneratorBuilder();
	}

}
